#================================================================
#	This Makefile creates Mesh_2.so which can be imported via Python
#================================================================

include ../makefile.inc

Mesh_2_module = Mesh_2

OBJ_of_Mesh_2_module = \
	Mesh_2_module.o \
	Py_Delaunay_mesher_2.o 

all:$(OBJ_of_Mesh_2_module) 
	@echo 'Creating a Python modules'
	@g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Mesh_2_module) -o $(Mesh_2_module).so
	@echo '$(Mesh_2_module) module is created in ./$(Mesh_2_module)/$(Mesh_2_module).so'

.cpp.o:
	@echo 'Compiling $<'
	@g++ $(CGAL_PYTHON_CXXFLAGS) -c $<

clean:
	@rm -f *.so
	@rm -f $(OBJ_of_Mesh_2_module) *.*~  *~ 
